using System;
using System.Collections;
using System.Configuration;
using System.Reflection;

namespace Sedna.Core.Controller.Configurations
{
	/// <summary>
	/// Default implementation for IClientScriptingControl.
	/// </summary>
	public class ClientScriptingConfiguration: GenericConfiguration, IClientScriptingConfiguration
	{
	
		private bool clientScriptingEnabled;
		private string clientVariable;
        private string javascriptClass;


	    public string JavascriptClass
	    {
	        get { return javascriptClass; }
	        set { javascriptClass = value; }
	    }

	    public bool ClientScriptingEnabled
		{
			get { return clientScriptingEnabled; }
			set { clientScriptingEnabled = value; }
		}

		public string ClientVariable
		{
			get { return clientVariable; }
			set { clientVariable = value; }
		}

		public override IConfiguration CreateFromTemplate()
		{
			ClientScriptingConfiguration that = (ClientScriptingConfiguration)base.CreateFromTemplate();
			that.clientScriptingEnabled = clientScriptingEnabled;
			that.clientVariable = clientVariable;
            that.javascriptClass = javascriptClass;
			return that;
		}
	}
}
